# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=scooper
pkgver=1.3
pkgrel=1
pkgdesc="Web interface for litterbox"
arch="all"
url="https://git.causal.agency/scooper/"
license="GPL-3.0-or-later"
options="!check" # v1.1 not a real test suite
depends="litterbox"
makedepends="kcgi-dev kcgi-static zlib-static"
subpackages="$pkgname-doc"
source="https://git.causal.agency/scooper/snapshot/scooper-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make all
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6dc7eb751e25f75ce8fe9004c817a2f20fb6456cf25a7e0a76ca06e923241a1ad54146b1c36d61f48ea0cf21512f768136d64995b12f79629eac86adf109a8d5  scooper-1.3.tar.gz
"
